<link type="text/css" href="/admins/js/jquery/css/ui-lightness/transa.css" rel="stylesheet" />
<div class="dataTable">
      <table>         
            <tfoot>
                  <tr>
                        <td></td>
                        <td><?php echo '操作人：'.$this->name;?></td>
                        <td align="center">
                             <input class='button' id='count-button' type='button' value='打印' />
                             <input id="btnPrint" type="button" value="返回" class="button" onclick="javascript:history.go(-1)" /></th> 
                        </td>
                  </tr>
            </tfoot>
            <tr>

                  <th class="w2" width="25%" align="center">条码号</th>
                  <th class="w3" width="25%" align="center">公司名称</th>          
                  <th class="w4" width="25%" align="center">扫描时间</th>
            </tr>  

            <?php
            if ($this->trackList) {
                  foreach ($this->trackList as $Item) {
                        ?>
                        <tr>                             
                              <td class="w2" align="center"><?php echo $Item->no; ?></a></td>
                              <td class="w3" align="center"><?php echo $Item->ShipType->name; ?></td>
                              <td class="w4" align="center"><?php echo $Item->TransaDate->dateCreated; ?></td>
                        </tr>
                        <?php
                  }
            }
            ?>
      </table>
</div>                
<div class="toolbar">
      <?php echo $this->partial('paging.phtml', array("pages" => $this->trackAll, "pamas" => "quick=" . $this->quick)); ?>
</div>
<?php
if (isset($this->message) && $this->message != "") {
      echo '<script language="javascript" type="text/javascript">alert("' . $this->message . '")</script>';
}
?>
<script language="javascript">
      $('#count-button').click(function() {
            var count = "<?php echo $Item->count ?>";
            location.href = '/admini/packageno/print?count=' + count;
      });
</script>

